<?php $this->load->view('includes/header'); ?>
<div class="container">
    <div class="row">
	   <div class="col-md-9">
		  <h1>Panel de Control <small>Añadir Artistas</small></h1>
		  <hr>
		  <?php if (isset($error) && $error): ?>
    		  <div class="alert alert-info alert-dismissable">
    			 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
				<?php
				echo validation_errors();
				if (isset($msg) && $msg != ' ') {
				    echo $msg;
				}
				?>
    		  </div>

		  <?php endif ?>
		  <form role="form" class="form_add" id="form_add_artista" action="<?php echo base_url(); ?>/index.php/artistas/insert/<?php echo $cod_asociacion; ?>" method="post">

			 <div class="row">
				<div class="form-group col-md-3">
				    <label>CODIGO</label>
				    <input class="form-control" name="cod_asociacion" value="<?php echo $cod_asociacion; ?>"> 
				</div>
				<div class="form-group col-md-9">
				    <label>Nombre</label>
				    <input type="text" class="form-control input_width10" name="nombre" value="<?php echo $nombre; ?>"> 
				</div>
				<div class="form-group col-md-9">
				    <label>PAIS</label>
				    <select class="form-control" name="cod_pais">
					   <?php foreach ($paises as $each): ?>
						   <option value="<?php echo $each['cod_pais'] ?>"<?php if ($each['cod_pais'] == $cod_pais) {
							 echo 'selected';
						  } ?>><?php echo $each['nombre_pais'] ?></option>
					   <?php endforeach ?>
				    </select>
				</div>
			 </div>
			 <button type="submit" class="btn btn-primary" id="btn_add_client">Enviar</button>
		  </form>
	   </div>
    </div>
</div>
<?php $this->load->view('includes/footer'); ?>